price = ''
while price != 'quit':
	price = input("请输入年龄（按quit键推出程序）：")
	if price == 'quit':
		continue
	price = int(price)
	if price < 2:
		print("幼儿票是免费的")
	elif price < 12:
		print("儿童票12元")
	else:
		print("成人票20元")